package Level01_one;
//请用代码描述
//棕色的 Tom 猫会吃和抓老鼠
//白色的 Jerry 狗会吃和看家
//要求: 把猫和狗的共性抽取到动物类中
public class Test {
    public static void main(String[] args) {
        Animal cat = new Animal("Tom","棕色");
        Animal dog = new Animal("Jerry","白色");
        Cat cat1 = new Cat("Tom","棕色");
        Dog dog1 = new Dog("Jerry","白色");
        cat.eat();
        dog.eat();
        cat1.catchMouse();
        dog1.lookHome();
    }
}
